package com.zhanghu.backendZray.pojo.request.album;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author ZhangDong
 * @date 2024/8/19 17:41
 */
@Data
public class AlbumCollectionRequest {

    @NotNull(message = "id不能为空", groups = {Update.class})
    private Integer id;

    /**
     * 创建人员
     */
    private Integer userId;

    /**
     * 合集名称
     */
    @NotEmpty(message = "合集名称不能为空", groups = {Create.class, Update.class})
    @Length(max = 100, message = "合集名称最多100字符")
    private String collectionName;

    /**
     * 封面文件id
     */
    private Integer coverFileId;

    /**
     * 文件id集合
     */
//    @NotNull(message = "文件id集合不能为空", groups = {Create.class, Update.class})
    private List<Integer> fileIdList;


    public interface Update {
    }

    ;

    public interface Create {
    }
}
